package com.fast.alden.data.repo;

import com.fast.alden.data.model.SysMenuRole;

import java.util.List;

public interface SysMenuRoleRepository extends BaseEntityRepository<SysMenuRole> {
    List<SysMenuRole> findAllByMenuId(Long menuId);

    List<SysMenuRole> findAllByRoleIdIsAndMenuIdIn(Long roleId, List<Long> menuIds);

    void deleteByRoleIdIn(List<Long> roleIds);

    void deleteByMenuIdIn(List<Long> menuIds);

    List<SysMenuRole> findAllByRoleIdIn(List<Long> roleIds);
}
